package com.zhengxin.one.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.json.JSONObject;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BillCommercial {
    private int id;
    private String id_card;
    private String plan;
    private int handle_type;
    private int pay_status;
    private int status;
    private int sex;
    private int conditions;
    private Date jointime;
    //续缴月份
    private String keepTime;
    //续费合计
    private String total;
    //set全部
    public void setAll(JSONObject bean){
        this.sex= (int) bean.get("sex");
        this.plan= (String) bean.get("plan");
        this.conditions= (int) bean.get("condition");

    }
}
